<template>
  <div v-if="count>0" class="badge v-align-c font-13">
    <div class="align-c width-per-100" :class="count >= 10 ? 'pad-l-4 pad-r-4' : ''">
      {{ count < 100 ? count : '99+' }}
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        isComponents: true
      }
    },
    props: {
      count: {
        type: Number,
        default: 0
      }
    },
    methods: {
    }
  }
</script>

<style scoped>
  .badge {
    background-color: red;
    color: #fff;
    border-radius: 8px;
    min-width: 16px;
    max-width: 40px;
    height: 16px;
  }
</style>
